package cn.tedu.oa.attendance.entity;

import cn.tedu.oa.common.entity.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 考勤管理实体类
 */

public class Attendance extends BaseEntity {

    private Integer id;        /*考勤id*/
    private String  name;      /*员工名*/
    private String  type;      /*考勤类型:上班、下班*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date    workTime;  /*上下班时间*/
    private String  ip;        /*ip地址*/
    private String  cause;     /*原因*/
    private String  status;    /*状态:正常、迟到、早退、旷工、请假*/
    private String  work;      /*工作性质:外出、加班*/


    public Integer getId() {
        return id;
    }


    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getWorkTime() {
        return workTime;
    }

    public void setWorkTime(Date workTime) {
        this.workTime = workTime;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getCause() {
        return cause;
    }

    public void setCause(String cause) {
        this.cause = cause;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getWork() {
        return work;
    }

    public void setWork(String work) {
        this.work = work;
    }
}
